package com.yihusitian.zsxq.sg.util;

import com.yihusitian.zsxq.sg.config.TableInfo;
import com.yihusitian.zsxq.sg.entity.FieldInfo;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 单线程执行，不考虑线程安全问题
 *
 * @Description 公共信息持有者
 * @Author LeeHo
 * @Date 2020/8/26 15:48
 */
public class CommonInfoHolder {

    private CommonInfoHolder() {

    }

    public static final GenerateConfigHolder generateConfigHolder = new GenerateConfigHolder();

    @Setter
    @Getter
    private static TableInfo currentTableInfo;

    @Setter
    @Getter
    private static String currentTableComment;

    @Setter
    @Getter
    private static String currentBusinessName;

    @Setter
    @Getter
    private static List<FieldInfo> currentFieldInfoList;
}